package com.elephant.initializationBean.annotationScan;

import com.elephant.bean.MyClassPathXmlApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 林
 * @create 2025-06-18 9:56
 */
public class TestAutowired {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext applicationContext =
				new MyClassPathXmlApplicationContext("spring-test.xml");


		CarService carService = (CarService) applicationContext.getBean("carService");

		carService.Test();

	}
}
